package com.ruoyi.dr.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.dr.mapper.DrHomeFansDataMapper;
import com.ruoyi.dr.domain.DrHomeFansData;
import com.ruoyi.dr.service.IDrHomeFansDataService;

/**
 * 粉丝信息  /square_pc_api/homePage/overview/fans_portraitService业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-12
 */
@Service
public class DrHomeFansDataServiceImpl implements IDrHomeFansDataService 
{
    @Autowired
    private DrHomeFansDataMapper drHomeFansDataMapper;

    /**
     * 查询粉丝信息  /square_pc_api/homePage/overview/fans_portrait
     * 
     * @param uid 粉丝信息  /square_pc_api/homePage/overview/fans_portrait主键
     * @return 粉丝信息  /square_pc_api/homePage/overview/fans_portrait
     */
    @Override
    public DrHomeFansData selectDrHomeFansDataByUid(String uid)
    {
        return drHomeFansDataMapper.selectDrHomeFansDataByUid(uid);
    }

    /**
     * 查询粉丝信息  /square_pc_api/homePage/overview/fans_portrait列表
     * 
     * @param drHomeFansData 粉丝信息  /square_pc_api/homePage/overview/fans_portrait
     * @return 粉丝信息  /square_pc_api/homePage/overview/fans_portrait
     */
    @Override
    public List<DrHomeFansData> selectDrHomeFansDataList(DrHomeFansData drHomeFansData)
    {
        return drHomeFansDataMapper.selectDrHomeFansDataList(drHomeFansData);
    }

    /**
     * 新增粉丝信息  /square_pc_api/homePage/overview/fans_portrait
     * 
     * @param drHomeFansData 粉丝信息  /square_pc_api/homePage/overview/fans_portrait
     * @return 结果
     */
    @Override
    public int insertDrHomeFansData(DrHomeFansData drHomeFansData)
    {
        return drHomeFansDataMapper.insertDrHomeFansData(drHomeFansData);
    }

    /**
     * 修改粉丝信息  /square_pc_api/homePage/overview/fans_portrait
     * 
     * @param drHomeFansData 粉丝信息  /square_pc_api/homePage/overview/fans_portrait
     * @return 结果
     */
    @Override
    public int updateDrHomeFansData(DrHomeFansData drHomeFansData)
    {
        return drHomeFansDataMapper.updateDrHomeFansData(drHomeFansData);
    }

    /**
     * 批量删除粉丝信息  /square_pc_api/homePage/overview/fans_portrait
     * 
     * @param uids 需要删除的粉丝信息  /square_pc_api/homePage/overview/fans_portrait主键
     * @return 结果
     */
    @Override
    public int deleteDrHomeFansDataByUids(String[] uids)
    {
        return drHomeFansDataMapper.deleteDrHomeFansDataByUids(uids);
    }

    /**
     * 删除粉丝信息  /square_pc_api/homePage/overview/fans_portrait信息
     * 
     * @param uid 粉丝信息  /square_pc_api/homePage/overview/fans_portrait主键
     * @return 结果
     */
    @Override
    public int deleteDrHomeFansDataByUid(String uid)
    {
        return drHomeFansDataMapper.deleteDrHomeFansDataByUid(uid);
    }
}
